package com.homegoods.orderinfodetail.item;

import com.homegoods.orderinfodetail.model.AddressListModel;
import com.homegoods.orderinfodetail.model.AddressModel;
import com.kedll.library.mvp.BaseItem;

/**
 * @author QiQi
 * @ClassName: AddressItem
 * @date 2018/9/29
 * @description
 */
public abstract class AddressItem extends BaseItem<AddressModel> {
    public AddressItem(AddressModel data) {
        super(data);

    }

    public String getName() {
        return getData().getContacts();
    }

    public String getPhone() {
        return getData().getMPhone();
    }

    public String getArea() {
        return getData().getAreaSidTree();
    }

    public String getAddress() {
        return getData().getTitle();
    }

    public boolean getDefaultAddress() {
        return getData().getIsDefault() == 1;
    }

}

